<?php

$color = 0;
foreach($posts as $item)
{
	echo '<div class="blog-post">';
		echo '<div class="blog-post-title"><h2>';
			echo ucwords($item['title']);
		echo '</h2></div>';
		echo '<span class="blog-post-information">';
			echo "By <span class='name'>". ucwords($item['author']).'</span> on <span class="date">'.$item['human_timestamp'].'</span>';
		echo '</span>';
		echo '<div class="blog-post-content">';
			echo $item['content'];
		echo '</div>';
		echo "<div class='clearfix'></div>";
	echo '</div>';	
	$color++;
}
?>
<br /><br /><br />
<p><div class="middle"><?php echo anchor('blog/all_posts', 'View All Posts'); ?></div></p>
